/**
 * created by 小卷毛, 2021-07-30
 * Copyright (c) 2021, 416143467@qq.com All Rights Reserved.
 * #                   *********                            #
 * #                  ************                          #
 * #                  *************                         #
 * #                 **  ***********                        #
 * #                ***  ****** *****                       #
 * #                *** *******   ****                      #
 * #               ***  ********** ****                     #
 * #              ****  *********** ****                    #
 * #            *****   ***********  *****                  #
 * #           ******   *** ********   *****                #
 * #           *****   ***   ********   ******              #
 * #          ******   ***  ***********   ******            #
 * #         ******   **** **************  ******           #
 * #        *******  ********************* *******          #
 * #        *******  ******************************         #
 * #       *******  ****** ***************** *******        #
 * #       *******  ****** ****** *********   ******        #
 * #       *******    **  ******   ******     ******        #
 * #       *******        ******    *****     *****         #
 * #        ******        *****     *****     ****          #
 * #         *****        ****      *****     ***           #
 * #          *****       ***        ***      *             #
 * #            **       ****        ****                   #
 */
package com.rzico.sbl.model

import android.os.Parcelable
import com.xinnuo.common_ui.base.BaseBean
import kotlinx.parcelize.Parcelize

/**
 * 描 述：
 * 作 者：小卷毛  2021-07-30 16:58
 * 修改描述：
 * 修 改 人：
 * 修改版本：
 */

@Parcelize
class MemberData(
    var id: String = "",
    var memberId: String = "",
    var name: String = "",
    var mobile: String = "",
    var code: String = "",
    var logo: String = "",
    var type: String = "",
    var vip: String = "",
    var memo: String = "",
    var address: String? = "",
    var exchange: String = "0",
    var mortgage: String = "0",
    var borrowBarrel: String = "0",
    var amount: String? = "0.00",
    var arrears: String? = "0.00",
    var quantity: String? = "0",
    var createDate: String? = "",
    var source: String? = "",
    var paymentMethod: String = "",
    var cardType: String = "",
    var adminId: String? = "",
    var shippingId: String? = "",
    var receiverMobile: String? = "",
    var receiverAddress: String? = "",
    var promoter: String? = "",
    var productPriceFlag: Boolean = false,
    var check: Boolean = false
) : Parcelable

/**
 * 会员筛选字段
 */
@Parcelize
class MemberFilterData(
    var vipFlag: String = "",    //等级
    var payFlag: String = "",    //记账
    var priceFlag: Int = 0,      //改价
    var shipFlag: Int = 0,       //自动派单
    var barrelFlag: Int = 0,     //押桶
    var borrowFlag: Int = 0,     //借桶
    var referFlag: Int = 0,      //推荐人
    var referId: Int = -1,       //推荐人ID
    var tradeFlag: Int = 0,      //交易
    var sourceFlag: String = "", //来源
    var couponFlag: Int = 0,     //优惠券
    var memoFlag: Int = 0,       //备注
    var filterFlag: Boolean = false, //是否筛选
) : Parcelable

@Parcelize
data class AddressData(
    var id: String = "",
    var memberId: String = "",
    var memberName: String = "",
    var memberMobile: String = "",
    var logo: String? = "",
    var consignee: String = "",
    var phone: String = "",
    var areaId: String = "",
    var areaName: String = "",
    var address: String = "",
    var level: String = "",
    var levelFreight: String = "",
    var lat: String = "",
    var lng: String = "",
    var cardId: String? = "",
    var cardNo: String = "",
    var memberIndex: Int = -1,
    var default: Boolean = false,
) : Parcelable

@Parcelize
data class BucketModel(
    var stock: String = "",
    var pledge: String = "",
    var data: ArrayList<BucketData> = ArrayList()
) : Parcelable

@Parcelize
data class BucketData(
    var id: String = "",
    var barrelId: String = "",
    var barrelPledge: String = "0",
    var name: String = "",
    var stock: String = "",
    var mortgage: String = "",
    var borrow: String = "",
    var hang: String = "",
    var pledge: String = "",
    var cid: String? = "",
    var cname: String? = "",
    var mobile: String? = "",
    var address: String? = "",
    var clogo: String? = ""
) : Parcelable

@Parcelize
data class OfflineRecord(
    var id: String = "",
    var createDate: String = "",
    var visitDate: String? = "",
    var memo: String = "",
    var operator: String? = ""
) : Parcelable

@Parcelize
data class PromoterData(
    var id: String = "",
    var logo: String? = "",
    var name: String? = "",
    var mobile: String? = "",
    var type: String = ""
) : Parcelable

data class RecordData(
    var mobile: String = "",
    var status: String = "",
    var source: String = "",
    var createDate: String = "",
    var memberId: String? = null,
    var newer: Boolean = false
) : BaseBean()

@Parcelize
data class RecordFindData(
    var id: String? = "",
    var memberId: String = "",
    var memberName: String? = "",
    var memberMobile: String = "",
    var logo: String? = "",
    var consignee: String? = "",
    var phone: String? = "",
    var address: String? = "",
    var cardId: String? = "",
    var cardNo: String? = "",
    var default: Boolean? = false,
) : Parcelable